package com.niuxiaofa.newlaw.Tools;

import android.content.Context;
import android.content.SharedPreferences;

public class SharedPreferencesHelp {


    //协议对话框
    public static boolean getSharePreference(String key) {

        SharedPreferences sharedPreferences = UIUtils.getActivity().getSharedPreferences("protocolDialog", Context.MODE_PRIVATE);

        long data1 = sharedPreferences.getLong(key, 0);
        long data2 = UUDateUtils.getUnixTimestamp();

        if (data2 - data1 >= 604800000) {

            return true;
        }
        return false;
    }

}
